﻿using ChibiTD.Core.Objects;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;

namespace ChibiTD.Core.Entities
{
    public class BulletEntity : Entity
    {
        public BulletEntity(Game game, int width, int height, Vector2 position) : base(game, width, height, position)
        {
        }

        public override void LoadTexture(string texture)
        {
            mTexture = Game.Content.Load<Texture2D>(texture);
        }

        public override void Draw(SpriteBatch batch)
        {
            batch.Begin();
            batch.Draw(mTexture, mPosition, Animations[mCurrentAnimation].CurrentFrame, Color.White, mRotation, new Vector2(mWidth / 2, mHeight / 2), 1f, SpriteEffects.None, 0f);
            batch.End();
        }
    }
}
